package com.yanqu.road.entity.log;

import com.yanqu.road.entity.FieldTypeAnnotation;
import com.yanqu.road.entity.log.maidian.BaseLogEntity;

import java.util.Date;

@FieldTypeAnnotation(tableName = "t_l_common_wish_draw", autoSave = true, dataUpload = true, eventName = "market_draw")
public class LogCommonWishDraw extends BaseLogEntity {

    @FieldTypeAnnotation(isIndex = true, dataAttribute = "activityid")
    int activityId;

    @FieldTypeAnnotation(isIndex = true)
    long userId;

    @FieldTypeAnnotation(desc = "轮次，初始1", dataAttribute = "draw_round")
    int round;

    @FieldTypeAnnotation(desc = "当前轮次， 总抽奖次数", dataAttribute = "draw_roundnum")
    int drawTimes;

    @FieldTypeAnnotation(desc = "抽奖次数", dataAttribute = "draw_time")
    int times;

    @FieldTypeAnnotation(desc = "奖励", dataAttribute = "draw_get")
    String reward;

    @FieldTypeAnnotation(desc = "是否大奖", dataAttribute = "draw_isbig")
    boolean bigReward;

    @FieldTypeAnnotation(desc = "时间")
    private Date logTime;

    @FieldTypeAnnotation(desc = "活动小类型", dataAttribute = "draw_type", insert = false)
    private int drawType;

    public LogCommonWishDraw(int activityId, long userId, int round, int drawTimes, int times, String reward, boolean bigReward, int drawType) {
        this.activityId = activityId;
        this.userId = userId;
        this.round = round;
        this.drawTimes = drawTimes;
        this.times = times;
        this.reward = reward;
        this.bigReward = bigReward;
        this.logTime = new Date();
        this.drawType = drawType;
    }

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public long getUserId() {
        return userId;
    }

    public void setUserId(long userId) {
        this.userId = userId;
    }

    public int getRound() {
        return round;
    }

    public void setRound(int round) {
        this.round = round;
    }

    public int getDrawTimes() {
        return drawTimes;
    }

    public void setDrawTimes(int drawTimes) {
        this.drawTimes = drawTimes;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public String getReward() {
        return reward;
    }

    public void setReward(String reward) {
        this.reward = reward;
    }

    public boolean isBigReward() {
        return bigReward;
    }

    public void setBigReward(boolean bigReward) {
        this.bigReward = bigReward;
    }

    public Date getLogTime() {
        return logTime;
    }

    public void setLogTime(Date logTime) {
        this.logTime = logTime;
    }

    public int getDrawType() {
        return drawType;
    }

    public void setDrawType(int drawType) {
        this.drawType = drawType;
    }
}
